const http = require('http')
const querystring = require('querystring')

http.createServer((req, res) => {
    if (req.method === 'POST') {
        console.log('req content-type:', req.headers['content-type']);
        let postData = ''
        req.on('data', chunk => {
            postData += chunk.toString()
        })
        req.on('end', () => {
            console.log('postData:', postData)
            res.end('hellow world')
        })
    }
}).listen(3000)
console.log("ok");


